<?php if(!empty($firstNode)) { ?>
<div class="span-8" style=" color:#FFF; padding:15px;">
    <div style="border:1px solid grey; padding: 2px; margin-bottom: 10px; overflow: hidden;">
        <?php
            if(!empty($firstNode['link']))
            {
                //Replace link youtube
                $link = str_replace('http://www.youtube.com/watch?v=', 'http://www.youtube-nocookie.com/v/', $firstNode['link']);
        ?>
        <object width="305" height="200">
            <param name="movie" value="<?php echo $link; ?>?fs=1&amp;hl=en_US&amp;rel=0"></param>
            <param name="allowFullScreen" value="true"></param>
            <param name="allowscriptaccess" value="always"></param>
            <param name="wmode" value="opaque"></param>
            <embed src="<?php echo $link; ?>?fs=1&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="305" height="200" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed>
        </object>
        <?php
            }
            else
            {
                echo $firstNode['value'];
            }
        ?>
    </div>
    <div style="font-size:15px; font-weight: bold"><?php echo $firstNode['title']; ?></div>
    <div>
    <?php echo $this->utf8_substr($firstNode['description'], 0, 200); ?><a href="<?php echo site_url().'/video/view/id/'.$firstNode['node_id']; ?>">xem thêm</a>
    </div>
</div>
<div class="span-10 center last" style="color:#FFF; padding-top:15px;">
    <ul class="film-gallery-home" style="overflow: hidden;">
        <?php
            foreach($arrNode as $node) {
        ?>
        <li>
            <a href="<?php echo site_url().'/video/view/id/'.$node['node_id']; ?>" title="<?php echo $node['title']; ?>" alt="<?php echo $node['title']; ?>">
                <img class="list_thumb" src="<?php echo $node['thumb']; ?>" alt="<?php echo $node['title']; ?>" title="<?php echo $node['title']; ?>" height="100" width="100" />
                <div><?php echo $this->utf8_substr($node['title'], 0, 22); ?></div>
            </a>
        </li>
        <?php } ?>
    </ul>
</div>
<?php } ?>
